package javapop.framework.parser;


public class Space extends Char {	
	private static Space singleton = new Space();
	
	private Space() {
		description = "a space character";
	}

	public static Space getInstance() {
		return singleton;
	}
	
	@Override
	public boolean acceptChar(Character ch) {
		if(ch==null)
			return false;
		return Character.isSpaceChar(ch);
	}
	
	@Override
	public int hashCode() {
		return id.hashCode();
	}
	
	@Override
	public boolean equals(Object obj) {
		return obj==this;
	}

}
